//
//  DataModel.m
//  Final
//
//  Created by Pibinuo on 15/12/8.
//  Copyright © 2015年 皮比诺. All rights reserved.
//

#import "DataModel.h"

@implementation DataModel

-(void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"user"]) {
        self.icon = value[@"icon"];
        self.login = value[@"login"];
        self.id = value[@"id"];
    }
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
